<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      console.log(30 > 20);
      console.log("abc" < "abfcd");
      console.log("张三" < "李四");
      console.log("张三".charCodeAt(0)); //张的Unicode编码
      console.log("李四".charCodeAt(0)); //李的Unicode编码
      console.log("abc".charCodeAt(0)); //a的Unicode编码

      console.log(true > 0); //true
      //true和flase与数字进行比较时会自动转换true 1,flase 0
      console.log(true > "abc"); //flase

      console.log("20" == 20); //只比较数值
      console.log("20" === 20); //比较数值和数据类型
      console.log(30 != 20);
      console.log(26 !== 20);
    </script>
  </body>
</html>
